EXEC = ./bin/tcp_client 
OBJS = socket_client.o client_main.o send_pic.o packeage_pic_info.o client_judgement.o receive_date.o socket_connect.o 
SRC  = socket_client.c client_main.c send_pic.c packeage_pic_info.c client_judgement.c receive_date.c socket_connect.c 

CC = gcc
#CC = arm-linux-gcc
CFLAGS += -O2 -Wall
LDFLAGS += 

all:$(EXEC)

$(EXEC):$(OBJS)
	@echo Building $@;
	$(CC) $(LDFLAGS) -o $@ $(OBJS) -pthread

%.o:%.c
	@echo Building $@;
	$(CC) $(CFLAGS) -c $< -o $@ -pthread

clean:
	@rm -vf $(EXEC) *.o *~

rebuild:
	clear
	$(MAKE) clean
	$(MAKE) all	
